{template 'public/header'}
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/ygcsslist.css">
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/ygcss.css">
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/zoomify.min.css">
<style>
    .control_info{margin-top: 7px}
    .wyheader{font-size: 16px;
        font-weight: bold;}
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li class="active"><a href="javascript:void(0);">订单详情</a></li>
</ul>

<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <!--<input type="hidden" name="parentid" value="{$parent['id']}" />-->
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                订单详情
                {if $item['source_type'] == 1}
                <span class="label store-yellow btn">客户下单</span>
                {else}
                <span class="label store-blue btn">预订下单</span>
                {/if}
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">订单号:</label>
                        <div class="col-sm-9 control_info">
                            {$item['ordernum']}
                        </div>
                    </div>
                </div>
                <div class="form-group">

                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">订单类型:</label>
                        <div class="col-sm-9 control_info">
                            {if $item['type']==1}短租订单{else}长租订单{/if}
                        </div>
                    </div>
                </div>
                <div class="form-group">

                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">门店名称:</label>
                        <div class="col-sm-9 control_info">
                            {$item['shopname']}
                        </div>
                    </div>
                </div>
                {if $item['nickname']}
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信名:</label>
                        <div class="col-sm-9 control_info">
                            {$item['nickname']}
                        </div>
                    </div>
                </div>
                {/if}
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">车辆名称（车牌号）:</label>
                        <div class="col-sm-9 control_info">
                            {$item['car_name']} ({$item['carnum']})
                            {if $item['is_inner'] == 1}
                            <span class="label store-yellow btn">自有车辆</span>
                            {else}
                            <span class="label store-blue btn">外调车辆</span>
                            {/if}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label" style = 'height:70px'>时间:</label>
                        <div class="col-sm-9 control_info">
                            租车时间（天数）：{$item['start_time']} ~ {$item['end_time']}（{$item['day']}天）
                        </div>
                        <div class="col-sm-9 control_info">
                            下单时间：{$item['createtime']}
                        </div>
                        <div class="col-sm-9 control_info">
                            付款时间：{$item['paytime']}
                        </div>
             <!--           <div class="col-sm-9 control_info">
                            取车时间：{$item['usetime']}
                        </div>
                        <div class="col-sm-9 control_info">
                            还车时间：{$item['return_time']}
                        </div>-->
                    </div>
                </div>
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:140px'>金额:</label>
                        <div class="col-sm-9 control_info">
                            总价：￥{$item['total_money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            押金：￥{$item['deposit_money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            单价：￥{$item['money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            手续费：￥{$item['fee']}
                        </div>
                        <div class="col-sm-9 control_info">
                            基础服务费：￥{$item['service_fee']}
                        </div>
                        <div class="col-sm-9 control_info">
                            实付金额：￥{$item['prepay_money']}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:50px'>优惠:</label>
                        <!--<div class="col-sm-9 control_info">
                            积分抵现：{$item['integral']}积分抵￥{$item['integral_money']}
                        </div>-->
                        <div class="col-sm-9 control_info">
                            优惠券抵现：￥{$item['coupon_money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            尊享服务：{if $item['open_zx_service']==1}开启（￥{$item['zx_service_fee']}）{else}关闭{/if}
                        </div>

                    </div>
                </div>
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label" style = 'height:50px'>取车:</label>
                        <div class="col-sm-9 control_info">
                            取车方式：{if $item['gettype']==1}门店自取 {else}送车上门{/if}
                        </div>
                        <div class="col-sm-9 control_info">
                            取车名称/手机：{$item['username']} / {$item['tel']}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {if $item['shuttle_id'] > 0}
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">交还车员详情</div>
            <div class="panel-body">
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label" style = 'height:150px'>交车员信息</label>
                        <div class="col-sm-9 control_info">
                            姓名：{$item['shuttle']['name']}
                        </div>
                        <div class="col-sm-9 control_info">
                            所属门店：{$item['shuttle']['branch_name']}
                        </div>
                        <div class="col-sm-9 control_info">
                            当前佣金总额：{$item['shuttle']['balance']}
                        </div>
                        <div class="col-sm-9 control_info">
                            本单佣金：{$item['shuttle_order']['amount']}
                        </div>
                        <div class="col-sm-9 control_info">
                            佣金结算状态：{if $item['shuttle_order']['status']==0}
                            <span class="label store-yellow btn">待结算</span>
                            {elseif $item['shuttle_order']['status']==1}
                            <span class="label store-blue btn">已结算</span>
                            {/if}
                        </div>
                        <div class="col-sm-9 control_info">
                            交还车状态:
                            {if $item['shuttle_order']['order_status']==0}
                            <span class="label store-yellow btn">已结单</span>
                            {elseif $item['shuttle_order']['order_status']==1}
                            <span class="label store-blue btn">已交车</span>
                            {elseif $item['shuttle_order']['order_status']==2}
                            <span class="label store-green btn">已还车</span>
                            {/if}
                        </div>

                    </div>
                </div>
               <!-- <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:110px'>交车信息</label>
                        <div class="col-sm-9 control_info">
                            交车里程：{$item['shuttle_delivery']['km_start']} km
                        </div>
                        <div class="col-sm-9 control_info">
                            交车油量：{$item['shuttle_delivery']['petrol_start']} L
                        </div>
                        <div class="col-sm-9 control_info">
                            交车时间：{$item['shuttle_delivery']['delivery_start_time']}
                        </div>
                        <div class="col-sm-9 control_info">
                            保证金：￥{$item['shuttle_delivery']['deposit']}
                        </div>
                    </div>
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">车辆图片:</label>
                        <div class="col-sm-9 control_info">
                            {loop $item['shuttle_delivery']['delivery_start_pic'] $index $value}
                            <img src="{$value}" alt="" style = 'height:70px'>
                            {/loop}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:110px'>还车信息</label>
                        <div class="col-sm-9 control_info">
                            交车里程：{$item['shuttle_delivery']['km_end']} km
                        </div>
                        <div class="col-sm-9 control_info">
                            交车油量：{$item['shuttle_delivery']['petrol_end']} L
                        </div>
                        <div class="col-sm-9 control_info">
                            交车时间：{$item['shuttle_delivery']['delivery_end_time']}
                        </div>
                        <div class="col-sm-9 control_info">
                            保证金：￥{$item['shuttle_delivery']['deposit']}
                        </div>
                    </div>
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">车辆图片:</label>
                        <div class="col-sm-9 control_info">
                            {loop $item['shuttle_delivery']['delivery_end_pic'] $index $value}
                            <img src="{$value}" alt="" style = 'height:70px'>
                            {/loop}
                        </div>
                    </div>
                </div>-->
            </div>
        </div>
        {/if}
        {if $item['shuttle_delivery']['delivery_start_time']}
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">交车信息</div>
            <div class="panel-body">
                <div class="form-group">
                    <!--<div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:150px'>交车信息</label>
                        <div class="col-sm-9 control_info">
                            交车里程：{$item['shuttle_delivery']['km_start']} km
                        </div>
                        <div class="col-sm-9 control_info">
                            交车油量：{$item['shuttle_delivery']['petrol_start']} L
                        </div>
                        <div class="col-sm-9 control_info">
                            交车时间：{$item['shuttle_delivery']['delivery_start_time']}
                        </div>
                        <div class="col-sm-9 control_info">
                            押金：￥{$item['shuttle_delivery']['deposit']}
                        </div>
                        <div class="col-sm-9 control_info">
                            保证金：￥{$item['shuttle_delivery']['security']}
                        </div>
                        <div class="col-sm-9 control_info">
                            送车费用：￥{$item['shuttle_delivery']['give_car_cost']}
                        </div>
                    </div>-->
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">交车时间:</label>
                        <div class="col-sm-9 control_info">
                            {$item['shuttle_delivery']['delivery_start_time']}
                        </div>
                    </div>
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">车辆图片:</label>
                        <div class="col-sm-9 control_info">
                            {loop $item['shuttle_delivery']['delivery_start_pic'] $index $value}
                            <img src="{$value}" alt="" style = 'height:70px'>
                            {/loop}
                        </div>
                    </div>
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">车辆仪表:</label>
                        <div class="col-sm-9 control_info">
                            {loop $item['shuttle_delivery']['delivery_start_meter'] $index $value}
                            <img src="{$value}" alt="" style = 'height:70px'>
                            {/loop}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/if}

        {if $item['shuttle_delivery']['delivery_end_time']}
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">还车信息</div>
            <div class="panel-body">
                <div class="form-group">
                    <!--<div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:400px'>还车信息</label>
                        <div class="col-sm-9 control_info">
                            还车里程：{$item['shuttle_delivery']['km_end']} km
                        </div>
                        <div class="col-sm-9 control_info">
                            还车油量：{$item['shuttle_delivery']['petrol_end']} L
                        </div>
                        <div class="col-sm-9 control_info">
                            还车时间：{$item['shuttle_delivery']['delivery_end_time']}
                        </div>
                        <div class="col-sm-9 control_info">
                            退押金：￥{$item['shuttle_delivery']['refund_deposit']}
                        </div>
                        <div class="col-sm-9 control_info">
                            退押金：￥{$item['shuttle_delivery']['refund_security']}
                        </div>

                        <div class="col-sm-9 control_info">
                            还车费用：￥{$item['shuttle_delivery']['reclaim_car_cost']}
                        </div>
                        <div class="col-sm-9 control_info">
                            超出公里：￥{$item['shuttle_delivery']['exceed_km']}
                        </div>
                        <div class="col-sm-9 control_info">
                            超出时间：￥{$item['shuttle_delivery']['exceed_time']}
                        </div>
                        <div class="col-sm-9 control_info">
                            油补：￥{$item['shuttle_delivery']['gasoline_subsidy_cost']}
                        </div>
                        <div class="col-sm-9 control_info">
                            违章：￥{$item['shuttle_delivery']['peccant_cost']}
                        </div>
                        <div class="col-sm-9 control_info">
                            车损：￥{$item['shuttle_delivery']['car_damage_cost']}
                        </div>

                        <div class="col-sm-9 control_info">
                            中介费：￥{$item['shuttle_delivery']['intermediary_cost']}
                        </div>
                        <div class="col-sm-9 control_info">
                            司机：￥{$item['shuttle_delivery']['driver_cost']}
                        </div>
                        <div class="col-sm-9 control_info">
                            加油：￥{$item['shuttle_delivery']['refueling_cost']}
                        </div>
                        <div class="col-sm-9 control_info">
                            维修保养：￥{$item['shuttle_delivery']['maintenance_cost']}
                        </div>
                    </div>-->
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">还车时间:</label>
                        <div class="col-sm-9 control_info">
                            {$item['shuttle_delivery']['delivery_end_time']}
                        </div>
                    </div>
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">车辆图片:</label>
                        <div class="col-sm-9 control_info">
                            {loop $item['shuttle_delivery']['delivery_end_pic'] $index $value}
                            <img src="{$value}" alt="" style = 'height:70px'>
                            {/loop}
                        </div>
                    </div>
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">车辆仪表:</label>
                        <div class="col-sm-9 control_info">
                            {loop $item['shuttle_delivery']['delivery_end_meter'] $index $value}
                            <img src="{$value}" alt="" style = 'height:70px'>
                            {/loop}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/if}
        {if $item['is_invoice'] > 0}
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                发票详情
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label" style = 'height:150px'>发票信息</label>
                        {if $item['invoice_money'] > 0}
                        <div class="col-sm-9 control_info">
                            发票费用：{$item['invoice_money']}
                        </div>
                        {/if}
                        {if $item['invoice_postage'] > 0}
                        <div class="col-sm-9 control_info">
                            发票邮费：{$item['invoice_postage']}
                        </div>
                        {/if}
                        <div class="col-sm-9 control_info">
                            发票费用状态：
                            {if $item['invoice_pay_status']==0}
                            <span class="label store-yellow btn">待支付</span>
                            {elseif $item['invoice_pay_status']==1}
                            <span class="label store-blue btn">已支付</span>
                            {elseif $item['invoice_pay_status']==2}
                            <span class="label store-green btn">无需支付</span>
                            {/if}
                        </div>
                        {if $item['invoice_pay_time']}
                        <div class="col-sm-9 control_info">
                            支付时间：{$item['invoice_pay_time']}
                        </div>
                        {/if}
                        <div class="col-sm-9 control_info">
                            发票类型：
                            {if $item['invoice_type']==1}
                            个人
                            {else}
                            企业
                            {/if}
                        </div>
                        <div class="col-sm-9 control_info">
                            发票分类：
                            {if $item['invoice']==1}
                            普通
                            {else}
                            电子
                            {/if}
                        </div>
                        {if $item['invoice_type']==2}
                        <div class="col-sm-9 control_info">
                            纳税人编号：{$item['invoice_number']}
                        </div>
                        {/if}
                        {if $item['invoice']==2}
                        <div class="col-sm-9 control_info">
                            邮箱：{$item['invoice_email']}
                        </div>
                        {/if}
                        {if $item['invoice']==1}
                        <div class="col-sm-9 control_info">
                            邮寄地址：{$item['invoice_address']}
                        </div>
                        {/if}

                        <div class="col-sm-9 control_info">
                            发票内容：{$item['invoice_content']}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/if}
        {if $xzorder}
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                续租详情
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label" style = 'height:70px'>时间:</label>
                        <div class="col-sm-9 control_info">
                            续租时间（天数）：{$xzorder['start_time']} ~ {$xzorder['end_time']}（{$xzorder['day']}天）
                        </div>
                        <div class="col-sm-9 control_info">
                            续租下单时间：{$xzorder['createtime']}
                        </div>
                        <div class="col-sm-9 control_info">
                            付款时间：{$xzorder['paytime']}
                        </div>
                        <!-- <div class="col-sm-9 control_info">
                            还车时间：{$xzorder['return_time']}
                        </div> -->
                    </div>
                </div>
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:90px'>金额:</label>
                        <div class="col-sm-9 control_info">
                            续租总价：￥{$xzorder['total_money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            单价：￥{$xzorder['money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            基础服务费：￥{$xzorder['service_fee']}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label"  style = 'height:50px'>优惠:</label>
                        <div class="col-sm-9 control_info">
                            积分抵现：{$xzorder['integral']}积分抵￥{$xzorder['integral_money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            优惠券抵现：￥{$xzorder['coupon_money']}
                        </div>
                        <div class="col-sm-9 control_info">
                            尊享服务：{if $xzorder['open_zx_service']==1}开启（￥{$xzorder['zx_service_fee']}）{else}关闭{/if}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/if}

        {if $item['contract'] || $item['fdd_task_id']}
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                合同详情
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">签署方式:</label>
                        <div class="col-sm-9 control_info">
                            {if $item['contract']}
                            线下签署
                            {else}
                            法大大签署
                            {/if}
                        </div>
                    </div>
                    {if $item['contract']}
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">合同图片:</label>
                        <div class="col-sm-9 control_info">
                            <img src="{$item['contract']}" alt="" style = 'height:70px'>
                        </div>
                    </div>
                    {/if}
                    {if $item['contract_shuttle_id']}
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">上传合同人:</label>
                        <div class="col-sm-9 control_info">
                            {$item['contract_shuttle_name']}
                        </div>
                    </div>
                    {/if}
                    {if $item['fdd_task_id']}
                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">法大大合同编号:</label>
                        <div class="col-sm-9 control_info">
                            {$item['fdd_task_id']}
                        </div>
                    </div>
                    {/if}
                    <!--<div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">身份证号:</label>
                        <div class="col-sm-9 control_info">
                            {$info['sfcode']}
                        </div>
                    </div>


                    <div class="pb15 col-sm-12">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">驾驶证:</label>
                        <div class="col-sm-9 control_info">
                            {if $info['jsimg']}
                            <img src="{media $info['jsimg']} " alt="" style = 'height:70px'>
                            {/if}
                            {if $info['jsimgfan']}
                            <img src="{media $info['jsimgfan']} " alt="" style = 'height:70px'>
                            {/if}
                        </div>
                    </div>-->
                </div>
            </div>
        </div>
        {/if}
        <!-- <div class="form-group">
            <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #444444;margin-left: 550px;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
            <input type="hidden" name="id" value="{$item['id']}" />
        </div> -->
    </form>
</div>
<script src="../addons/yzzc_sun/template/public/zoomify.min.js"></script>

<script type="text/javascript">
    $(function(){
        $("#frame-2").show();
        $("#yframe-2").addClass("wyactive");

        $('.form-group img').zoomify();

    })
</script>